package com.chen.wow.day03.autowiredmore;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Configuration
public class Config {
	@Bean
	public People people(){
		return new People();
	}
	
	@Bean
	@Primary//首选bean
	public Cookies cookies(){
		return new Cookies();
	}
	
	@Bean
	public Cake cake(){
		return new Cake();
	}
	
	@Bean
	@Cold
	@Creamy
	public IceCream iceCream(){
		return new IceCream();
	}
	
	@Bean
	@Cold
	@Fruity
	public Popsicle popsicle(){
		return new Popsicle();
	}
	
	
}
